package org.codert.jpa.config;

import org.codert.jpa.interceptor.MyInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @description:
 * @author: TanJingyu
 * @create: 2021-09-23 23:08
 **/
@Configuration(proxyBeanMethods = false)
public class MyMvcConfiguration implements WebMvcConfigurer {

    /**
     * 注册拦截器
     */
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(new MyInterceptor());
    }
}
